BIN= mythread
CC= g++
SRC= $(shell ls *.cc)
OBJ= $(SRC:.cc=.o)
CFLAGS= -Wall -g -std=c++11 -lpthread

$(BIN): $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS)
%.o: %.cc
	$(CC) -c $< -o $@ $(CFLAGS)

.PHONY: clean
clean:
	rm -f $(BIN) $(OBJ)
	
